package day05;
//break的演示
public class BreakDemo {
    public static void main(String[] args) {
        for (int num = 1; num <= 9; num++) {
            if (num == 4) {
                break;
            }
            System.out.println(num + "*9=" + num * 9);
        }
        /*
            执行过程:
                num = 1     1 * 9 = 9
                num = 2     2 * 9 = 18
                num = 3     3 * 9 = 27
                num = 4     跳出循环了
         */
    }
}
